home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / bash_114.zip / bash-1.14.2 / config.h < prev    next >
C/C++ Source or Header  |  1994-05-17  |  6KB  |  170 lines

  1. /* config.h -- Configuration file for bash. */
  2.  
  3. /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
  4.  
  5.    This file is part of GNU Bash, the Bourne Again SHell.
  6.  
  7.    Bash is free software; you can redistribute it and/or modify it
  8.    under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 1, or (at your option)
  10.    any later version.
  11.  
  12.    Bash is distributed in the hope that it will be useful, but WITHOUT
  13.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  14.    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  15.    License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with Bash; see the file COPYING.  If not, write to the Free
  19.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  20.  
  21. #if !defined (_CONFIG_H_)
  22. #define _CONFIG_H_
  23.  
  24. #if !defined (BUILDING_MAKEFILE)
  25. #include "memalloc.h"
  26. #endif
  27.  
  28. #if defined (HAVE_UNISTD_H) && !defined (BUILDING_MAKEFILE)
  29. #  ifdef CRAY
  30. #    define word __word
  31. #  endif
  32. #include <unistd.h>
  33. #  ifdef CRAY
  34. #    undef word
  35. #  endif
  36. #endif
  37.  
  38. /* Define JOB_CONTROL if your operating system supports
  39.    BSD-like job control. */
  40. #define JOB_CONTROL
  41.  
  42. /* Note that vanilla System V machines don't support BSD job control,
  43.    although some do support Posix job control. */
  44. #if defined (USG) || defined (MINIX) || defined (Minix)
  45. #  if !defined (_POSIX_JOB_CONTROL)
  46. #    undef JOB_CONTROL
  47. #  endif /* !_POSIX_JOB_CONTROL */
  48. #endif /* USG || Minix || MINIX */
  49.  
  50. /* Define ALIAS if you want the alias features. */
  51. #define ALIAS
  52.  
  53. /* Define PUSHD_AND_POPD if you want those commands to be compiled in.
  54.    (Also the `dirs' commands.) */
  55. #define PUSHD_AND_POPD
  56.  
  57. /* Define BRACE_EXPANSION if you want curly brace expansion a la Csh:
  58.    foo{a,b} -> fooa foob.  Even if this is compiled in (the default) you
  59.    can turn it off at shell startup with `-nobraceexpansion', or during
  60.    shell execution with `set +o braceexpand'. */
  61. #define BRACE_EXPANSION
  62.  
  63. /* Define READLINE to get the nifty/glitzy editing features.
  64.    This is on by default.  You can turn it off interactively
  65.    with the -nolineediting flag. */
  66. #define READLINE
  67.  
  68. /* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
  69.    This is unrelated to READLINE. */
  70. #define BANG_HISTORY
  71.  
  72. /* Define HISTORY if you want to have access to previously typed commands.
  73.  
  74.    If both HISTORY and READLINE are defined, you can get at the commands
  75.    with line editing commands, and you can directly manipulate the history
  76.    from the command line.
  77.  
  78.    If only HISTORY is defined, the `fc' and `history' builtins are
  79.    available. */
  80. #define HISTORY
  81.  
  82. #if defined (BANG_HISTORY) && !defined (HISTORY)
  83.    /* BANG_HISTORY requires HISTORY. */
  84. #  define HISTORY
  85. #endif /* BANG_HISTORY && !HISTORY */
  86.  
  87. /* The default value of the PATH variable. */
  88. #define DEFAULT_PATH_VALUE \
  89.   ":/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/etc"
  90.  
  91. /* The value for PATH when invoking `command -p'.  This is only used when
  92.    the Posix.2 confstr () function, or CS_PATH define are not present. */
  93. #define STANDARD_UTILS_PATH \
  94.   "/bin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/etc"
  95.  
  96. /* Define V9_ECHO if you want to give the echo builtin backslash-escape
  97.    interpretation using the -e option, in the style of the Bell Labs 9th
  98.    Edition version of echo. */
  99. #define V9_ECHO
  100.  
  101. /* Define DEFAULT_ECHO_TO_USG if you want the echo builtin to interpret
  102.    the backslash-escape characters by default, like the System V echo.
  103.    This requires that V9_ECHO be defined. */
  104. /* #define DEFAULT_ECHO_TO_USG */
  105. #if !defined (V9_ECHO)
  106. #  undef DEFAULT_ECHO_TO_USG
  107. #endif
  108.  
  109. /* Define CONTINUE_AFTER_KILL_ERROR if you want the kill command to
  110.    continue processing arguments after one of them fails. */
  111. #define CONTINUE_AFTER_KILL_ERROR
  112.  
  113. /* Define BREAK_COMPLAINS if you want the non-standard, but useful
  114.    error messages about `break' and `continue' out of context. */
  115. #define BREAK_COMPLAINS
  116.  
  117. /* Define GETOPTS_BUILTIN if you want the Posix.2 `getopts' shell builtin
  118.    compiled into the shell. */
  119. #define GETOPTS_BUILTIN
  120.  
  121. /* When ALLOW_RIGID_POSIX_COMPLIANCE is defined, you can turn on strictly
  122.    Posix compliant behaviour by setting the environment variable
  123.    POSIXLY_CORRECT. */
  124. #define ALLOW_RIGID_POSIX_COMPLIANCE
  125.  
  126. /* Define RESTRICTED_SHELL if you want the generated shell to have the
  127.    ability to be a restricted one.  The shell thus generated can become
  128.    restricted by being run with the name "rbash", or by setting the -r
  129.    flag. */
  130. /* #define RESTRICTED_SHELL */
  131.  
  132. /* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
  133.    shell builtin "foo", even if it has been disabled with "enable -n foo". */
  134. /* #define DISABLED_BUILTINS */
  135.  
  136. /* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
  137.    substitution features "<(file)". */
  138. /* Right now, you cannot do this on machines without fully operational
  139.    FIFO support.  This currently include NeXT and Alliant. */
  140. #if !defined (MKFIFO_MISSING) || defined (HAVE_DEV_FD)
  141. #  define PROCESS_SUBSTITUTION
  142. #endif /* !MKFIFO_MISSING */
  143.  
  144. /* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
  145.    characters in PS1 and PS2 expanded.  Variable expansion will still be
  146.    performed. */
  147. #define PROMPT_STRING_DECODE
  148.  
  149. /* Define BUFFERED_INPUT if you want the shell to do its own input
  150.    buffering. */
  151. #define BUFFERED_INPUT
  152.  
  153. /* Define INTERACTIVE_COMMENTS if you want # comments to work by default
  154.    when the shell is interactive, as Posix.2a specifies. */
  155. #define INTERACTIVE_COMMENTS
  156.  
  157. /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
  158.    `command' whenever possible. */
  159. #define ONESHOT
  160.  
  161. /* Default primary and secondary prompt strings. */
  162. #define PPROMPT "bash\\$ "
  163. #define SPROMPT "> "
  164.  
  165. /* Define SELECT_COMMAND if you want the Korn-shell style `select' command:
  166.     select word in word_list; do command_list; done */
  167. #define SELECT_COMMAND
  168.  
  169. #endif    /* !_CONFIG_H_ */
  170.